Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GraphNode port position when the control has the Expand flag #49970

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

trollodel
Copy link
Contributor

@trollodel trollodel commented Jun 28, 2021

Follow up of #39810

When a GraphNode child has the (vertical) Expand size flag enabled, the port icon position and the get_connection_*_position are different, resulting in the following artifacts:

before
(The bigger Godot logo has the Expand flag)

I fix this by using the full control size, and not just the minimum one.

after

I don't test Visual Script and Visual Shader, but if the control size is the same of Control.get_combined_minimum_size (which seems to be the default behaviour), there shouldn't be any regression.

Test scene:
graphedit.zip

@trollodel trollodel requested a review from a team as a code owner June 28, 2021 17:15
@YeldhamDev YeldhamDev added bug topic:gui cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Jun 28, 2021
@YeldhamDev YeldhamDev added this to the 4.0 milestone Jun 28, 2021
@akien-mga akien-mga merged commit 9c6d7f8 into godotengine:master Jun 29, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 29, 2021
@trollodel trollodel deleted the graphnode_fix_port_position branch June 29, 2021 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants